//package com.yushu.common.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.view.tiles3.TilesConfigurer;
//import org.springframework.web.servlet.view.tiles3.TilesView;
//import org.springframework.web.servlet.view.tiles3.TilesViewResolver;
///**
// * @author test
// * @CreateDate 2020-12-03 15:47:25
// */
////@PropertySource("classpath:WEB-INF/tiles/tiles-template.xml")
////@ComponentScan
////@EnableAutoConfiguration
//
//@Configuration
//public class TilesConfig {
//    @Bean
//    public TilesConfigurer tilesConfigurer() {
//        final TilesConfigurer configurer = new TilesConfigurer();
//         configurer.setDefinitions("classpath:/tiles/tiles-template.xml");
//        configurer.setCheckRefresh(true);
//        return configurer;
//    }
//
//    /**
//     * Introduce a Tiles view resolver, this is a convenience implementation that extends URLBasedViewResolver.
//     *
//     * @return tiles view resolver
//     */
//    @Bean
//    public TilesViewResolver tilesViewResolver() {
//        final TilesViewResolver resolver = new TilesViewResolver();
//        resolver.setViewClass(TilesView.class);
//        return resolver;
//    }
///*
//    @Bean
//    public ThymeleafTilesConfigurer tilesConfigurer() {
//        ThymeleafTilesConfigurer ttc = new ThymeleafTilesConfigurer();
//        //ttc.setValidateDefinitions(false);
//        ttc.setDefinitions(ThymeleafProperties.DEFAULT_PREFIX + "tiles-defs.xml");
//        return ttc;
//    }*/
//}
